<%@ page import="schoolsource.gui.FormFields" %>
<%
    String loginType = (String) request.getAttribute(FormFields.USRTYPE); 
    String schoolName = (String) request.getAttribute(FormFields.SCHOOLNAME);
%>

<HTML>
<HEAD>
<TITLE>
myStudentLink
</TITLE>
</HEAD>
<FRAMESET border=0 cols="130px,100%"> <!--border=0-->
<FRAME name="menuframe" scrolling="no" src="../blank.html">
<FRAMESET border=0 rows="275px,100%">
<%
    if (FormFields.STUDENTTYPE.equals(loginType) ||
        FormFields.PARENTTYPE.equals(loginType)) {
        out.println("<FRAME src=\"schoolsource.command.StudentParentAccessCMD?" + FormFields.SCHOOLNAME + "=" + schoolName + "&" + FormFields.USRTYPE + "=" + loginType + "\" name=\"mainframe\" NORESIZE>");
    }
    else if (FormFields.TEACHERTYPE.equals(loginType)) {
        out.println("<FRAME src=\"schoolsource.command.TeacherAccessCMD?" + FormFields.SCHOOLNAME + "=" + schoolName + "&" + FormFields.USRTYPE + "=" + loginType + "\" name=\"mainframe\" NORESIZE>");
    }
    else if (FormFields.EDITORTYPE.equals(loginType)) {
        out.println("<FRAME src=\"schoolsource.command.EditorCMD?" + FormFields.SCHOOLNAME + "=" + schoolName + "&" + FormFields.USRTYPE + "=" + loginType + "\" name=\"mainframe\" NORESIZE>");
    }
    else {
        out.println("<FRAME src=\"../blank.html\" name=\"mainframe\" NORESIZE>");
    }
    
%>
<FRAME name="viewframe" src="../blank.html" NORESIZE>
</FRAMESET>
</FRAMESET>
<NOFRAMES>
<H2>
Frame Alert</H2>

<P>
This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
<BR>
</HTML>
